package cc.mrbird.febs.power.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TreeNode implements Serializable {

    private static final long serialVersionUID = 1L;

    private String title;

    private Integer key;

    private Integer parentId;

    private List<TreeNode> children;

    public TreeNode(String title, Integer key, Integer parentId, List<TreeNode> children) {
        this.title = title;
        this.key = key;
        this.parentId = parentId;
        this.children = children;
    }

    public TreeNode() {
    }
}
